﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

public partial class form_content : System.Web.UI.UserControl {

#region Properties

    public HtmlTableRow prop_rowParent {
        get {return rowParent;}
        set {rowParent = value;}
    }
    public HtmlTableRow prop_rowAssignedTo {
        get {return rowAssignedTo;}
        set {rowAssignedTo = value;}
    }
    public HtmlTableRow prop_rowStatus {
        get {return rowStatus;}
        set {rowStatus = value;}
    }
    public HtmlTableRow prop_rowTemplate {
        get {return rowTemplate;}
        set {rowTemplate = value;}
    }
    public HtmlTableRow prop_rowStyle {
        get {return rowStyle;}
        set {rowStyle = value;}
    }
    public HtmlTableRow prop_rowOrder {
        get {return rowOrder;}
        set {rowOrder = value;}
    }
    public HtmlTableRow prop_rowOrderType {
        get {return rowOrderType;}
        set {rowOrderType = value;}
    }
    public HtmlTableRow prop_rowMenuOrder {
        get {return rowMenuOrder;}
        set {rowMenuOrder = value;}
    }
    public Panel prop_pnlType {
        get {return pnlType;}
        set {pnlType = value;}
    }
    public Panel prop_pnlTitle {
        get {return pnlTitle;}
        set {pnlTitle = value;}
    }
    public Panel prop_pnlHeader {
        get {return pnlHeader;}
        set {pnlHeader = value;}
    }
    public Panel prop_pnlBody {
        get {return pnlBody;}
        set {pnlBody = value;}
    }
    public Panel prop_pnlFooter {
        get {return pnlFooter;}
        set {pnlFooter = value;}
    }
    public Panel prop_pnlMeta {
        get {return pnlMeta;}
        set {pnlMeta = value;}
    }
    public Label prop_lblTitle {
        get {return lblTitle;}
        set {lblTitle = value;}
    }
    public TextBox prop_txtTitle {
        get {return txtTitle;}
        set {txtTitle = value;}
    }
    public Label prop_lblHeader {
        get {return lblHeader;}
        set {lblHeader = value;}
    }
    public TextBox prop_txtHeader {
        get {return txtHeader;}
        set {txtHeader = value;}
    }
    public Label prop_lblBody {
        get {return lblBody;}
        set {lblBody = value;}
    }
    public TextBox prop_txtBody {
        get {return txtBody;}
        set {txtBody = value;}
    }
    public Label prop_lblFooter {
        get {return lblFooter;}
        set {lblFooter = value;}
    }
    public TextBox prop_txtFooter {
        get {return txtFooter;}
        set {txtFooter = value;}
    }
    public DropDownList prop_ddlType {
        get {return ddlType;}
        set {ddlType = value;}
    }
    public DropDownList prop_ddlParent {
        get {return ddlParent;}
        set {ddlParent = value;}
    }
    public DropDownList prop_ddlAssignedTo {
        get {return ddlAssignedTo;}
        set {ddlAssignedTo = value;}
    }
    public DropDownList prop_ddlStatus {
        get {return ddlStatus;}
        set {ddlStatus = value;}
    }
    public DropDownList prop_ddlTemplate {
        get {return ddlTemplate;}
        set {ddlTemplate = value;}
    }
    public DropDownList prop_ddlStyle {
        get {return ddlStyle;}
        set {ddlStyle = value;}
    }
    public DropDownList prop_ddlOrderType {
        get {return ddlOrderType;}
        set {ddlOrderType = value;}
    }
    public TextBox prop_txtOrder {
        get {return txtOrder;}
        set {txtOrder = value;}
    }
    public TextBox prop_txtMenuOrder {
        get {return txtMenuOrder;}
        set {txtMenuOrder = value;}
    }

#endregion

    protected void Page_Init(Object sender, EventArgs e) {
        if(!Page.IsPostBack) {
            txtOrder.Text = "10";
            txtMenuOrder.Text = "10";
            // Populate form control with default.
            ddlParent.Items.Add(new ListItem("Root", "0"));
            // Populate form control with default.
            String[] enumNames = System.Enum.GetNames(typeof(ent.TableLists.enumContentAssignedTo));
            int enumIndex = 0;
            foreach(int enumValue in System.Enum.GetValues(typeof(ent.TableLists.enumContentAssignedTo))) {
                ddlAssignedTo.Items.Add(new ListItem(enumNames[enumIndex++], enumValue.ToString()));
            }
            // Populate form control with default.
            ddlStatus.Items.Add(new ListItem("None", "0"));
            // Populate form control with default.
            ddlTemplate.Items.Add(new ListItem("None", "0"));
            // Populate form control with default.
            ddlStyle.Items.Add(new ListItem("None", "0"));
            // Populate form control with default.
            ddlOrderType.Items.Add(new ListItem("None", "0"));
        }
    }
}